//
//  JokeTableViewCell.m
//  Days
//
//  Created by lanou3g on 16/1/7.
//  Copyright © 2016年 dss. All rights reserved.
//

#import "JokeTableViewCell.h"

@implementation JokeTableViewCell

+(CGFloat)heightForLabelText:(NSString *)text
{

    //size
    CGSize size = CGSizeMake([UIScreen mainScreen].bounds.size.width-20, 1000);
    //attributes
    NSDictionary *dic = @{NSFontAttributeName:[UIFont systemFontOfSize:17]};
    //执行自适应高度方法,获取rect
    CGRect rect = [text boundingRectWithSize:size options:NSStringDrawingUsesLineFragmentOrigin attributes:dic context:nil];
    //返回设置好的高度
    return rect.size.height;



}
@end
